from django.contrib import admin
import functools


def register_admin(model):
    return functools.partial(admin.site.register, model)
